package stringhomework2;

public class indexDemo {
    public static void main(String[] args) {

        String str="thinking in java";
        int s=str.indexOf("in");
        System.out.println(s);
        int e=str.lastIndexOf("in");
        System.out.println(e);
    }
}
